#!/bin/bash

#Name of the job
#$ -N raytrace_par_complex_5_cycles_320

#Run the job from the current working directory
#$ -cwd

#Use the shell "bash"
#$ -S /bin/bash

#When to send emails
#.b.     Mail is sent at the beginning of the job.
#.e.     Mail is sent at the end of the job.
#.a.     Mail is sent when the job is aborted or rescheduled.
#.s.     Mail is sent when the job is suspended.
#.n.     No mail is sent.
#$ -m n

#Email status updates to this user
#$ -M user@example.com

#File to output to
#$ -o output_par_complex_5_cycles_320.log

#Join output and error files together
#$ -j y

#Import current environment into the job when it runs.
#$ -V

#Which parallel environment to use and how many cores to claim
#$ -pe openmpi 5

#Declares whether the job is rerunnable.
#$ -r n

#Your commands go after this line
mpirun --mca btl ^openib -np 5 raytrace -t 5000 -w 5000 -c configs/box.cfg -a cycles -sh 320
